﻿function NumberOnly(e) {

    if ((e.keyCode >= 48 && e.keyCode <= 57) || (e.keyCode == 8)) {
        return true;
    }
    else {
        return false;
    }
}

function EngOnly(e) {

    if ((e.keyCode >= 65 && e.keyCode <= 122) || (e.keyCode == 8)) {
        return true;
    }
    else {
        return false;
    }
}

function Max_KeyNum(id, max) {
    var num = parseInt(document.getElementById(id).value);
    if (num > max) {
        document.getElementById(id).value = max
    }
}